	******************************************
		** Do Group-Based Inequalities Feel More Unjust?**
		** Leipziger, Aarslew, & Christensen	**
		** 										**
		** Data cleaning code					**
		******************************************
		******************************************
clear all		
**Converting India data to excel file and saving only relevant variables
use "data/IN_data_clean.dta",clear
keep D q18

export excel using "data/cleandata_text_IN", firstrow(variables) replace

**Converting South Africa data to excel file and saving only relevant variables
use "data/ZA_data_clean.dta",clear

keep D q18

export excel using "data/cleandata_text_ZA", firstrow(variables) replace

**Converting US data to excel file and saving only relevant variables
use "data/US_data_clean.dta",clear

keep D q18

export excel using "data/cleandata_text_US", firstrow(variables) replace